package com.hqj.demo;

public class Student extends User {

    private static final long serialVersionUID = -202008101124L;
    private int score;

    public Student() {
    }

    public Student(String loginName, String userName, String type, String sex, String password, int score) {
        super(loginName, userName, type, sex, password);
        this.score = score;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "学生{" +super.toString()+
                ",score=" + score +
                '}';
    }
}
